37e7ad
@@ -534,7 +534,7 @@
public class CommandLineJobRunner {
 			if (System.in.available() > 0) {
 				BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
 				String line = " ";
-				while (StringUtils.hasLength(line)) {
+				while (line != null) {
 					if (!line.startsWith("#") && StringUtils.hasText(line)) {
 						logger.debug("Stdin arg: " + line);
 						newargs.add(line);
